package cn.lili.controller.feign.message;

import cn.lili.modules.member.client.ArticleClient;
import cn.lili.modules.other.service.ArticleService;
import cn.lili.modules.page.entity.dos.Article;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class ArticleFeignController implements ArticleClient {

    private final ArticleService articleService;
    @Override
    public List<Article> getAllByType(String type) {
        return articleService.getAllByType(type);
    }
}
